package it.osg.openstory.util;

public class Converter {
	
	public static int convertDate(String date) {
		int firstIndex = date.indexOf("/");
		int secondIndex = date.indexOf("/", firstIndex + 1);
		String year = date.substring(secondIndex + 1, date.length());
		String day = date.substring(firstIndex + 1, secondIndex);
		String mounth = date.substring(0, firstIndex);
		return Integer.parseInt(year + mounth + day);
	}
	
	public static void main(String[] args) {
		System.out.println(convertDate("05/10/2012"));
	}

}
